package com.caicai.mapper;

import java.util.List;

import com.caicai.entity.User;

public interface UserMapper {
	/**
	 * 查询所有数据
	 * @return
	 * @throws Exception
	 */
	public List<User> queryAll() throws Exception;
	/**
	 * 根据id更新一条数据 
	 * @param user
	 * @throws Exception
	 */
	public void updateOneById(User user) throws Exception;
	/**
	 * 添加一条数据
	 * @param user
	 * @throws Exception
	 */
	public void insertOne(User user)throws Exception;
	/**
	 * 根据id删除一条数据
	 * @param i
	 * @throws Exception
	 */
	public void deleteOneById(int i)throws Exception;
}
